<!DOCTYPE html>
<html>
<head>
    <title><?= $settings['naziv'] ?> <?= self::getLayoutTitle() ?></title>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    
    <link rel="stylesheet" type="text/css" href="/css/admin.css">

    <script type="text/javascript" src="/js/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="/js/jquery-ui.min.js"></script>

    <?= $this->layoutStyles ?>
    <?= $this->layoutScripts ?>
</head>

<body>
<div id="container">
    <?= $this->helpSession->flash() ?>
    <header>
        <?= $this->helpHtml->image('srbelektro.png', array(
            'link' => array(
                'href' => '/admin',
                'id'   => 'logo'
            ),
            'height' => 48
        )) ?>

        <? if (Lib\Controller\Auth::authorized()): ?>
        <menu>
            <? foreach ($menu as $item): ?>
                <li<?= $item->active ? ' class="active"' : '' ?>><a href="<?= $item->link ?>"><?= $item->label ?></a></li>
            <? endforeach ?>
            <li><a href="/admin/logout">Одјавите се</a></li>
        </menu>
        <? endif ?>

        <br clear="all">
    </header>
    <section id="main">
        <?= $__content ?>
    </section>
    <footer>
    </footer>
</div>
</body>
</html>